package cn.bdqn.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.bdqn.pojo.User;

public interface UserDao {
	User findByCode(@Param("userCode")String userCode);
	int addUser(@Param("user")User user);
	List<User> showAll();
	int getCountByConditions(@Param("userName")String userName,@Param("roleId")Integer roleId);
	List<User> findByPageConditions(@Param("form")Integer form,@Param("pageSize")Integer pageSize,@Param("userName")String userName,@Param("roleId")Integer roleId);
	User findById(@Param("id")Integer id);
	int updateByUser(User user);
	int deleteById(Integer uid);
}
